import { createStore } from "vuex";
import menu from './menu'
import createPersistedState from 'vuex-persistedstate'

// 返回一个store实例，需要对外暴露
export default createStore({
    plugins: [new createPersistedState({
        // 持久化
        key: 'pz_v3pz',
    })],
    modules:{
        menu
    }
})